export const FILE_TYPE = {
  DIR: 1,
  FILE: 2
}

export const OPERATION_TYPE = {
  CREATE_FILE: {
    desc: '新建文件',
    instruction: 'writeFileSync',
    dirtype: 0
  },
  CREATE_DIRECTORY: {
    desc: '新建文件夹',
    instruction: 'mkdirSync',
    dirtype: 1
  },
  RENAME_FILE: {
    desc: '重命名',
    instruction: 'renameSync',
    dirtype: 2
  },
  DELETE_FILE: {
    desc: '删除文件',
    instruction: 'unlinkSync',
    dirtype: 3
  },
  DELETE_DIRECTORY: {
    desc: '删除文件夹',
    instruction: 'rmdirSync',
    dirtype: 4
  }
}

export const TOAST_TYPE = {
  SUCCESS: {
    type: 'success',
    color: '#00FF7F'
  },
  DANGER: {
    type: 'danger',
    color: '#F53E3E'
  },
  WARNING: {
    type: 'warning',
    color: '#F2B308'
  },
  INFO: {
    type: 'info',
    color: '#16A2E3'
  }
}

export const themeMap = {
  ux: {
    theme: 'vue',
    language: 'vue'
  },
  js: {
    theme: 'vue',
    language: 'javascript'
  },
  json: {
    theme: 'vue',
    language: 'json'
  }
}
